package mx.com.mindbits.bandpay.utils;

import java.io.InputStream;
import java.util.Properties;


import android.content.Context;
import android.content.res.AssetManager;
import android.util.Log;

public class PropertiesBP {
		 
	Properties _properties;
	private String file_propertie;
	private Context _context;
	
	public PropertiesBP(Context context){
		_context = context;
		file_propertie = "app.properties";
	}
	
	
	 public Properties loadProperties(){
		 _properties = new Properties();
		 try{
			 AssetManager assetManager = _context.getAssets();
			 //InputStream _fileStream = _context.getAssets().open(file_propertie);
			 InputStream _fileStream = assetManager.open(file_propertie); 
			 _properties.load(_fileStream);
			 _fileStream.close();
		 }catch(Exception e){
			 Log.i(ConstantsValues.LOG_PROPERTIESBP, "Error" + e);
		 }
		 
		 
		 return _properties;
	 }
	 

}
